#define _CRT_SECURE_NO_WARNINGS
#include"game.h"


int count = 0;



int main()
{
	srand((unsigned int)time(NULL));
	int choose;
	do
	{
		Menu();
		scanf("%d", &choose);
		switch (choose)
		{
		case 0:
			printf("Exit.\n");
			{
				break;
			}
		case 1:
		{
			while (1)
			{
				printf("Type mine counts.\n");
				scanf("%d", &count);
				if (count <= 0)
				{
					printf("That number is too small.\n");
				}
				else if (count >= H * L)
				{
					printf("That number is too large.\n");
				}
				else
				{
					break;
				}
			}
			Game();
			break;
		}
		default:
		{
			printf("Typing error.\n");
			break;
		}
		}
	} while (0 != choose);

	return;
}

